Live Character Counter using JavaScript